<%--
  Author      : MadFrog
  Date        : 2018/5/14 15:36
  Description : 
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>表格</title>
    <link rel="stylesheet" type="text/css" href="css/easyui-themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="css/easyui-themes/icon.css">
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.easyui.min.js"></script>
    <script>
        $(document).ready(function () {
            $('#dg').datagrid({
                url:'news!findAll',
                columns:[[
                    {field:'id',title:'id',width:100},
                    {field:'title',title:'title',width:100},
                    {field:'content',title:'content',width:100,align:'right'}
                ]]
            });
        });
    </script>
</head>
<body>
<p>The DataGrid is created from markup, no JavaScript code needed.</p>
<div style="margin:20px 0;"></div>

<%--<table class="easyui-datagrid" title="Basic DataGrid" style="width:700px;height:250px"--%>
       <%--data-options="singleSelect:true,collapsible:true,url:'datagrid_data1.json',method:'get'">--%>
    <%--<thead>--%>
    <%--<tr>--%>
        <%--<th data-options="field:'itemid',width:80">Item ID</th>--%>
        <%--<th data-options="field:'productid',width:100">Product</th>--%>
        <%--<th data-options="field:'listprice',width:80,align:'right'">List Price</th>--%>
        <%--<th data-options="field:'unitcost',width:80,align:'right'">Unit Cost</th>--%>
        <%--<th data-options="field:'attr1',width:250">Attribute</th>--%>
        <%--<th data-options="field:'status',width:60,align:'center'">Status</th>--%>
    <%--</tr>--%>
    <%--</thead>--%>
<%--</table>--%>
<table id="dg"></table>
</body>
</html>
